/*
 * @Description: 生活商城路由表
 * @Author: py
 * @Date: 2024-07-23
 */
import { Layout } from '@fl/utils/routerHelper'

const lifeMallRoute: AppRouteRecordRaw = {
    children: [
        // {
        //     children: [
        //         {
        //             component: () => import('@fl/city-service/clue/index.vue'),
        //             meta: {
        //                 isEditable: true,
        //                 title: '线索列表',
        //             },
        //             name: 'clue-list',
        //             path: 'clue-list',
        //         },
        //     ],
        //     component: '#',
        //     meta: {
        //         alwaysShow: true,
        //         icon: 'i-icon-park-outline:clue',
        //         title: '线索管理',
        //     },
        //     name: 'clue-management',
        //     path: 'clue',
        //     redirect: '/business-center/city/clue/clue-list',
        // },
        {
            children: [
                {
                    component: () => import('@fl/city-service/commodity/detail.vue'),
                    meta: {
                        activeMenu: '/business-center/life-mall/commodity',
                        hidden: true,
                        noTagsView: true,
                        title: '商品详情',

                    },
                    name: 'commodity-detail',
                    path: ':pageType/:id',
                },
            ],
            component: () => import('@fl/city-service/commodity/index.vue'),
            meta: {
                icon: 'i-carbon:carbon-for-ibm-product',
                isEditable: true,
                title: '商品管理',
            },
            name: 'commodity-management',
            path: 'commodity',
        },
        {
            children: [
                {
                    component: () => import('@/pages/life-mall/order/list.vue'),
                    meta: {
                        title: '订单查询',
                    },
                    name: 'life-mall-order-list',
                    path: 'order-list',
                },
                {
                    component: () => import('@/pages/life-mall/order/details.vue'),
                    meta: {
                        activeMenu: '/business-center/life-mall/life-mall-order/order-list',
                        hidden: true,
                        noTagsView: true,
                        title: '订单详情',
                    },
                    name: 'life-mall-order-details',
                    path: 'order-details',
                },
            ],
            meta: {
                alwaysShow: true,
                icon: 'i-pepicons-pencil:file',
                title: '订单管理',
            },
            name: 'life-mall-order-manage',
            path: 'life-mall-order',
        },
        {
            component: () => import('@/pages/life-mall/evaluate/list.vue'),
            meta: {
                // alwaysShow: true,
                icon: 'i-la:comment',
                title: '评价管理',
            },
            name: 'evaluate-manage',
            path: 'evaluate',
        },
        // {
        //     component: () => import('@/pages/life-mall/refund/list.vue'),
        //     meta: {
        //         // alwaysShow: true,
        //         icon: 'i-ph:currency-circle-dollar-thin',
        //         title: '退款管理',
        //     },
        //     name: 'refund-manage',
        //     path: 'refund',
        // },
    ],
    component: Layout,
    meta: {
        icon: 'i-material-symbols:storefront-outline',
        title: '生活商城',
    },
    name: 'life-mall',
    path: 'life-mall',
}

export default lifeMallRoute
